<template>
    <div class="econ-left">
        <div class="item">
          <div class="title">企业分布</div>
          <div class="content">
            <div class="box">
              <div class="chart1">
                <EBase :option="pieOption" :style="pieStyle" />
                <EBase :option="pieOption" :style="pieStyle" />
              </div>
              <div class="chart2">
                <p>企业发展量</p>
                <EBase :option="barOption" :style="barStyle" />
              </div>
            </div>
          </div>
        </div>
        <div class="item2">
          <div class="title">企业经济</div>
          <div class="content">
            <div class="box">
              <div class="desc1">
                企业经济收入总数;
              </div>
              <div class="desc1">
                <EBase :option="lineOption" :style="barStyle" />
              </div>
              <div class="desc1">
                <EBase :option="bar2Option" :style="barStyle" />
              </div>
            </div>
            
          </div>
        
        </div>
        <!-- <img src="../assets/images/左侧@2x.png" alt=""> -->
    </div>
</template>
<script>
import EBase from '../components/echarts/EBase.vue'
import pieOption from '../assets/echartConfig/pie.js'
import barOption from '../assets/echartConfig/bar.js'
import lineOption from '../assets/echartConfig/line.js'
import bar2Option from '../assets/echartConfig/bar2.js'
export default {
  components:{EBase},
    data(){
      return {
        pieOption,
        pieStyle: {
          width: '150px',
          height:'150px'
        },
        barOption,
        barStyle: {
          width: '320px',
          height:'150px'
        },
        lineOption,bar2Option
      }
    },
  mounted(){
    console.log(this.pie);
  }  
}
</script>
<style  scoped lang="scss">
.chart1{
  display: flex;
  justify-content:space-between;
}
.chart2{
  width:300px
}
.econ-left{
    position: relative;
    float: left;
    margin-top: -100px ;
    .item{
      .title{
        font-size: 16px;
        color: #00ffc2;
        font-weight: bold;
      }
      .content{
        width: 430px;
        height: 300px;
        background: url("../assets/images/背景@2x.png");
        background-size: 100% 100%;
        box-sizing: border-box;
        padding: 15px;
        display: flex;
        justify-content: center;
        align-items: center;

        .box{
          width: 80%;
          height: 80%;
          // border: 1px solid #ccc;
          .desc1{
            padding: 5px;
            color: #fff;
            border: 1px solid #ccc;;
          }
          .desc1:last-child{
            // border-bottom: none;
          }
        }
        
        

      }
    }
    .item2{
      margin-top: 100px;
      .title{
        font-size: 16px;
        color: #00ffc2;
        font-weight: bold;
      }
      .content{
        width: 430px;
        height: 350px;
        background: url("../assets/images/背景@2x.png");
        background-size: 100% 100%;
        box-sizing: border-box;
        padding: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        // padding-top: 30px;
        
        .box{
          width: 80%;
          height: 80%;
          // border: 1px solid #ccc;
        
          .desc1{
            padding: 5px;
            color: #fff;
            border: 1px solid #ccc;;
          }
        }
      }
    }
    
  }
</style>